package com.hj.dapp.business.dept.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.hj.dapp.business.dept.model.Dept;
import com.hj.dapp.common.request.PageRequest;

import java.security.Principal;
import java.util.List;

/**
 * @author 胡奥程
 * @version 1.0
 * @date 2023/12/30
 */
public interface DeptService {
    void saveDept(Dept dept, Principal principal);

    void editDept(Dept dept, Principal principal);

    List<Dept> listDept(Dept dept);

    IPage<Dept> pageDept(PageRequest<Dept> request);
}
